package Group9.TodoManager.View;

import Group9.TodoManager.Settings;
import javax.swing.JLabel;
import javax.swing.border.BevelBorder;

/**
 * This returns a JLabel component which can be used as a status bar for
 * an application.
 * @author Rupesh
 */
public final class StatusBar extends JLabel {
	
	/**
	 * Default Constructor. Creates an instance of the class.
	 * Does basic initialization.
	 */
    public StatusBar(){
        super();
        setMessage(" " + Settings.getCurrentResourceBundle().
                getString("StatusBarDefaultText"));
        this.setBorder(new BevelBorder(BevelBorder.LOWERED));
    }

    /**
     * Sets the specified message in the status bar
     * @param message The message to be displayed in the status bar.
     */
    public void setMessage(String message){
        setText(" " + message);
    }
}
